package com.javagi.controller;

import org.springframework.web.bind.annotation.RestController;
/**
 * @Description  测试 elasticsearch 的添加和查询
 * @Author kuiwang
 * @Date 14:09 2020/5/19
 * @Return
 */
@RestController
public class EsController {

/*
	@Autowired
	private UserReposiory userReposiory;

	@RequestMapping("/addUser")
	public UserEntity addUser(@RequestBody UserEntity user) {
		return userReposiory.save(user);
	}

	@RequestMapping("/findUser")
	public Optional<UserEntity> findUser(String id) {
		return userReposiory.findById(id);
	}
*/

}
